Skip to content

docs(skills): a long form stays simple, and inlineEdit names the bulk its save needs; os lint warns when it is withheld - #34600

Merged
os-zhuang merged 8 commits into
mainfrom
claude/project-thread-6lyn9b
Nov 17, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/project-thread-6lyn9b

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34567
Fixes #34566

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-ui 技能的表单类型表改为默认 simple(分组堆叠、一页滚动),不再把字段多的对象引向 tabbed,并补一段折叠分组、columns、modalSize 的选用;两份技能写明 inlineEdit 的保存要求父子对象都允许 bulk;新增编写期规则 relationship/inline-edit-needs-bulk(警告),登记在 AUTHORING_RULES,os lint、os validate(含 objectstack dev)、os build 三个命令都报。
  • 为什么改:照旧技能做,复杂表单变成必填项跨页签、手机上页签被截断;主从表单能填却在保存时 405,编写期没有任何提示(HotCRM 两处实测)。
  • 风险与回滚:技能只改文字;该规则是 advisory 警告,三个命令都只报不拦,不让任何构建失败,不拒收任何元数据。回滚即 revert 本 PR。
  • 先看:packages/lint/src/data-model-rules.ts 的 lintInlineEditBulk 与 packages/lint/src/authoring-rules.ts 里它的登记项,skills/objectstack-ui/SKILL.md Form Views 一节,scripts/check-skills-token-ratchet.mjs 三行上限的注释算式。
  • 两分钟验证:pnpm --filter @objectstack/cli exec vitest run --project unit test/data-model-rules.test.ts -t inline-edit-needs-bulk,应见 8 个用例全绿(含经注册表跑三个命令的一例)。
  • 需要你做的:审批(skills/** 受治理面,Tier H),批准后由席位落地。

What changes

#34567 (form layout). skills/objectstack-ui/SKILL.md § Form Views:

  • simple is "stacked sections on one scrolling page — the default, at any field count" (the "≤ 15 fields" cap is gone); tabbed is "only for sections read apart", and the row names its cost: a required field on another tab is flagged only on its tab, and the tab strip overflows on a phone.
  • One paragraph: a long form stays simple and collapses what is rarely filled — collapse: 'collapsed' on the object's fieldGroups entry, or collapsed: true on a form section that lists its own fields; columns (form or section) is a per-row ceiling a narrow screen lowers, unset a section draws two, so 3 for a wide data-entry form; modalSize (sm to full) sizes the New / Edit dialog, unset the field count picks lg or xl.
  • Every statement was read off the landed contract at origin/main 1e4656d: FormViewSchema.type default 'simple' and modalSize enum (packages/spec/src/ui/view.zod.ts); FormSectionSchema.collapsed (refused beside group, so the paragraph names the object's fieldGroups[].collapse for grouped sections) and columns 1–4 as a ceiling; the renderer's undeclared section density UNDECLARED_SECTION_COLUMNS = 2 (ui/packages/plugin-form/src/autoLayout.ts) and the dialog's undeclared size, bounded to lg/xl (ui/packages/plugin-form/src/ModalForm.tsx). ADR-0050 rules simple the default layout and says nothing about when to pick tabbed; the tabbed costs are the card's HotCRM staging measurement.
  • Eval case 19 in skills/objectstack-ui/evals/views-apps-actions-pages.json: a 42-field opportunity form opened in the New dialog; must_contain type: 'simple', modalSize; must_not_contain type: 'tabbed' (absent from its own expected_output). Either collapse route passes: collapsed: true on a section or collapse: 'collapsed' on the object's fieldGroups, as expected_output and the skill paragraph both allow.

#34566 (inlineEdit needs bulk). The parent's form saves an inlineEdit child's rows with the parent in one cross-object /api/v1/batch (ADR-0035), and that route gates EVERY op as bulk plus its write on the op's own object (packages/rest/src/batch-routes.ts, the per-op apiAccessDenialFromEnable(obj.enable, op.object, 'bulk', { bulkChild: op.action }) loop). An undeclared apiMethods is unrestricted (resolveEffectiveApiMethods in packages/spec/src/data/api-derivation.ts), so only a declared list without 'bulk' refuses.

  • skills/objectstack-ui/SKILL.md Master-Detail Forms item 1 and skills/objectstack-data/rules/relationships.md § Inline Editing: "A parent or child declaring enable.apiMethods must list 'bulk', or that save is refused 405 OBJECT_API_METHOD_NOT_ALLOWED."
  • packages/lint/src/data-model-rules.ts (spec-lane path, carried with this card's implementation half): lintInlineEditBulk(objects), rule id relationship/inline-edit-needs-bulk (RELATIONSHIP_INLINE_EDIT_NEEDS_BULK), warning. It fires on a relationship field with inlineEdit true / 'grid' / 'form' whose parent or own object declares enable.apiMethods that the spec's own isApiOperationAllowed(resolveEffectiveApiMethods(enable), 'bulk') refuses ([] included), once per object, at objects[N].enable.apiMethods, fix line add 'bulk' to OBJECT.enable.apiMethods. It is a standalone function, not a branch of lintDataModel (which stays os lint-only under DIRECT_CALL_RATCHET).
  • packages/lint/src/authoring-rules.ts: one AUTHORING_RULES entry — tier: 'advisory', input: 'parsed', commands: ALL, surfaces: CLI_ONLY with the existing RUNTIME_OBJECT_ADVISORY_VOLUME reason — so os lint, os validate (and objectstack dev) and os build all report the warning through the registry. Advisory: it never fails a build, and the registry wiring test confirms the function emits no 'error'. packages/lint/src/index.ts exports the function and its id.
  • skills/objectstack-data/references/lint-rules.md: one table row for it.
  • Four CLI transcripts under content/docs/ (deployment/cli.mdx, deployment/validating-metadata.mdx, getting-started/build-with-claude-code.mdx, ui/react-pages.mdx) now print Running author-time rules (69)...: the new registry entry raises the count os validate and os build print, and check:docs-transcript-drift derives it.
  • Test: a new top-level describe in packages/cli/test/data-model-rules.test.ts (the existing shared harness file for the data-model rules): one case through the registry — for each of lint, validate, build, authoringRulesFor(command) lists lintInlineEditBulk and runAuthoringRules(command, …) returns exactly one warning at objects[0].enable.apiMethods with its fix line, and lintDataModel no longer reports the id — then the parent arm for each of true / 'grid' / 'form' (severity, path, fix, message names OBJECT_API_METHOD_NOT_ALLOWED), the child arm, [] as deny-all, one finding per parent with two inline children, and silence for bulk listed / apiMethods undeclared / inlineEdit absent or false.

Ratchet (scripts/check-skills-token-ratchet.mjs). Restatement is cut first, each cut keeping a home:

  • objectstack-ui/SKILL.md: the derived-FK / roll-up paragraph under Master-Detail Forms (-223 bytes; the line-item paragraph's "every behaviour is derived from the DATA MODEL" and objectstack-data rules/relationships.md § Roll-up Summaries) and the "row-by-row" sentence under Field Conditional Rules (-97; objectstack-data SKILL.md § Conditional Field Rules, linked on the line above). Remainder raised in two pins, one per card: 3833 → 3888 → 3921 tokens (15329 → 15549 → 15684 priced bytes), zero headroom, under the standing ruling, verbatim and untranslated: 「A:先削重复,余额按实测提高」 (ruling record 6513306068).
  • objectstack-data/rules/relationships.md: the precondition (+129 bytes) is paid in the file — the subforms sentence folded into the objectstack-ui pointer, the related-list example's "write side" comment, "(no UI config)" — 16925 → 16916 bytes, row 4232 → 4229.
  • objectstack-data/references/lint-rules.md: the closing "target a lint-clean model" paragraph restated the table's rows one by one and is cut; 3829 → 3735 bytes, row 970 → 934.

Skills readings (lines, merge base origin/main 8dd8192 → this head):

File Before After
skills/objectstack-ui/SKILL.md 302 304
skills/objectstack-data/rules/relationships.md 414 414
skills/objectstack-data/references/lint-rules.md 52 49
skills/objectstack-ui/evals/views-apps-actions-pages.json (eval fixture) 185 195
All skills/*/SKILL.md 4605 4607
Whole skills/ tree 20936 20945

Tokens: objectstack-ui/SKILL.md 3833 → 3921, relationships.md 4232 → 4229, lint-rules.md 958 → 934.

Changeset .changeset/34567-form-layout-inline-edit-bulk.md: @objectstack/skills patch, @objectstack/lint patch (Metadata-protocol: none takes patch), both declaration lines at line start.

Tests

All readings at head 2da6508c15 (branch merged with origin/main 8dd8192; the merge touched no packages/lint or packages/cli/test path) unless marked. ef4b6bc350 changes only eval case 19's must_contain (a fixture no test or gate executes); the gate round and overlap-check below are at ef4b6bc350.

  • pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2 test/data-model-rules.test.ts — Test Files 1 passed, Tests 64 passed (56 before, +8 new).
  • pnpm --filter @objectstack/lint test — Test Files 214 passed, Tests 9091 passed, at 09c5d36610 (the registry commit), including authoring-rule-wiring.test.ts.
  • The CLI test files that read the registry (11 files) — Tests 262 passed, at 09c5d36610.
  • pnpm --filter @objectstack/lint run typecheck exit 0; pnpm --filter @objectstack/cli run typecheck exit 0, at 09c5d36610.
  • node scripts/check-skills-token-ratchet.mjs exit 0 at 2da6508c15.
Ablation (rerun on the registry rule)

node scripts/ablation-replace.mjs --file packages/lint/src/data-model-rules.ts replaced the rule's verdict line if (isApiOperationAllowed(resolveEffectiveApiMethods(objects[j]?.enable), 'bulk')) continue; with an always-continue twin carrying the marker ABLATED_34566 (anchor 1 → 0, blob 0d6fd144419e → 9c758edbcf1b), rebuilt @objectstack/lint, and node scripts/ablation-dist-preflight.mjs @objectstack/lint ABLATED_34566 found the marker in dist/. The run -t inline-edit-needs-bulk: Tests 7 failed, 1 passed — every hit case red, the registry case included; the silence case green. Restored: blob == HEAD (0d6fd144419e), git diff HEAD empty; rebuilt, preflight --absent passed, Tests 64 passed. Log: project share objectstack-seat2/34566-ablation-r2.log. Run at 09c5d36610; later commits on the branch touch only the changeset, four content/docs/ transcript lines and the merge from origin/main.

Derived gate round at `ef4b6bc350` — 123 derived, 123 run, 123 exit 0; `dispatch-gates --ran` 0 NOT-MEASURED

Every family read exit 0 on its first pass at this head; no rerun.

node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-docs-section-name.mjs :: exit 0
node scripts/check-docs-section-name.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0
node scripts/check-section-landing-index.mjs :: exit 0
node scripts/check-section-landing-index.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cli-examples-parity :: exit 0
pnpm check:cli-test-child-env :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-anchors :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:doc-frontmatter :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:docs-redirects :: exit 0
pnpm check:docs-single-h1 :: exit 0
pnpm check:docs-spec-enumerations :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:object-def-param-keys :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:published-files :: exit 0
pnpm check:published-readme-links :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:react-page-adapter-contract :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:role-word :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:settings-bind-window :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-links :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:vendor-version-stamps :: exit 0
pnpm check:vouch-for-reference-callers :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

Acceptance notes

  • Child side included. The cards name the parent; the batch gate judges every op on its own object, so a child declaring apiMethods without bulk is refused the same way. Both the skill sentence and the rule cover parent and child, and the rule covers lookup children with inlineEdit as well as master_detail ones (the relationship section teaches both).
  • Reach is all three commands. The rule lives in AUTHORING_RULES with commands: ALL, not inside lintDataModel (which DIRECT_CALL_RATCHET keeps os lint-only), so os lint, os validate / objectstack dev and os build print it. It stays advisory: a warning on every command, never a failed build. references/lint-rules.md keeps its os lint framing, which remains true; widening that intro would cost tokens the file no longer has.
  • Second road not taken. Exempting the form's own atomic save from the bulk gate widens what REST accepts; ADR-0035 and ADR-0103 D3/D5 carry no ruling that the form save must be ungated, so the card's first road stands.
  • Filed as finding(lint): the two line-item inlineEdit advisories read only inlineEdit: true, so a relationship declaring 'grid' or 'form' is told to add inlineEdit, and an association declaring 'grid' or 'form' is never warned #34636 (finding, awaiting triage). relationship/line-items-inline-edit tests def.inlineEdit !== true and the association check tests === true, so both miss 'grid' and 'form': a *_line child that already declares inlineEdit: 'grid' or 'form' still gets the "consider inlineEdit: true" suggestion. Not changed here.
  • L2 record 6938207311 (PASS at 2da6508c15), dispositions. S1 fixed in ef4b6bc350: eval case 19's must_contain no longer requires the literal collapsed: true, so an answer that collapses through the object's fieldGroups (collapse: 'collapsed', which its own expected_output and the skill sanction) is not failed; must_not_contain type: 'tabbed' and must_contain modalSize carry the case, and expected_output is unchanged. N5 (literal type: 'simple') left as is, matching case 1's convention. N1 (a child reached only through subforms or a page details block, without inlineEdit, needs bulk the same way) and N3 (the RUNTIME_OBJECT_ADVISORY_VOLUME surface reason keeps the warning off the runtime door) are follow-up candidates, not changed here. N2 (lint-rules.md keeps its os lint framing) is the accepted deviation above. N4 (keeping a required field out of a collapsed section) left as is.
  • Test placement. The dispatch order asked for a new card-named test file; AGENTS.md (ruling record 6583487846) puts a new pin for a component with a shared harness file into that file as a top-level describe, so it is in packages/cli/test/data-model-rules.test.ts.

Verification

  • node scripts/pm/overlap-check.mjs --branch=HEAD --exclude-pr=34600 at ef4b6bc350 against origin/main 082f9c2: VERDICT clean exit 0 — merges cleanly with origin/main and with chore: version packages #33849 (shares skills/objectstack-ui/SKILL.md). Earlier rounds at d67719d4, 4e35eed78d and 2da6508c15 were clean too.
  • Declared surface: skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/references/lint-rules.md, three rows of scripts/check-skills-token-ratchet.mjs, one root changeset, the four content/docs/ transcript lines, and packages/lint/src/data-model-rules.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/index.ts with the test in packages/cli/test/data-model-rules.test.ts (spec-lane paths, carried with this card's implementation half).
  • Tier H: skills/** is a governed surface. This PR stays draft and lands only after a GOVERNED_APPROVERS approval; contract review is routed by the seat.

Generated by Claude Code

…tead of tabbed

The Form Views table capped `simple` at 15 fields and sent objects with many
field groups to `tabbed`, which hides a missed required field on another tab
and overflows the tab strip on a phone. `simple` is now the default at any
field count, `tabbed` names its cost, and one paragraph says how a long form
stays `simple`: collapse the rarely filled groups, raise `columns`, size the
dialog with `modalSize`. Two restatements in the file pay part of it; the
token row moves by the measured remainder. One eval case pins the choice.

Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3
Co-authored-by: Claude <noreply@anthropic.com>
…hhold bulk is warned about, and the skills name the precondition

The parent's form saves an inlineEdit child's rows with the parent in one
cross-object /api/v1/batch, which gates every op as bulk on the op's own
object. A parent or child declaring enable.apiMethods without 'bulk' therefore
gets a form that fills and then 405s on save, and neither skill said so.

objectstack-ui Master-Detail Forms and objectstack-data Inline Editing now
state the precondition. os lint gains relationship/inline-edit-needs-bulk, a
warning beside relationship/line-items-inline-edit that judges the declared
list through the spec's own resolver and names the object and value to add.
Touched skill files pay by cutting restatement; ratchet rows follow.

Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/lint, touching 8 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/lint/src/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/client-sdk.mdx (via batchTransaction (sdk, the bare tail of client method data.batchTransaction, bound to POST /api/v1/batch), data.batchTransaction (sdk, the route ledger binds it to POST /api/v1/batch), /api/v1/batch (route, a path literal in a comment in AUTHORING_RULES; a path literal in a comment on a changed line; a path literal in lintInlineEditBulk))
  • content/docs/deployment/validating-metadata.mdx (via AUTHORING_RULES (symbol, a top-level const object))
  • content/docs/frontend/data-objectstack.mdx (via batchTransaction (sdk, the bare tail of client method data.batchTransaction, bound to POST /api/v1/batch))
  • content/docs/frontend/data-source.mdx (via batchTransaction (sdk, the bare tail of client method data.batchTransaction, bound to POST /api/v1/batch), data.batchTransaction (sdk, the route ledger binds it to POST /api/v1/batch), /api/v1/batch (route, a path literal in a comment in AUTHORING_RULES; a path literal in a comment on a changed line; a path literal in lintInlineEditBulk))
  • content/docs/protocol/kernel/http-protocol.mdx (via batchTransaction (sdk, the bare tail of client method data.batchTransaction, bound to POST /api/v1/batch), data.batchTransaction (sdk, the route ledger binds it to POST /api/v1/batch), /api/v1/batch (route, a path literal in a comment in AUTHORING_RULES; a path literal in a comment on a changed line; a path literal in lintInlineEditBulk))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/implementation-status.mdx (via /api/v1/batch (route, a path literal in a comment in AUTHORING_RULES; a path literal in a comment on a changed line; a path literal in lintInlineEditBulk))
  • content/docs/releases/v15.mdx (via batchTransaction (sdk, the bare tail of client method data.batchTransaction, bound to POST /api/v1/batch))
  • content/docs/releases/v16.mdx (via batchTransaction (sdk, the bare tail of client method data.batchTransaction, bound to POST /api/v1/batch), data.batchTransaction (sdk, the route ledger binds it to POST /api/v1/batch))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/lint/src/index.ts) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 082f9c2945260fd9b29951caff1c49f6dccab4ea → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 8e52f97ee3443f8d57ddaf9118152eceb7d351bb — the merge of head ef4b6bc350174e99a16427d1745754bdfa14a548 into base 082f9c2945260fd9b29951caff1c49f6dccab4ea, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 8e52f97ee3443f8d57ddaf9118152eceb7d351bb && git checkout 8e52f97ee3443f8d57ddaf9118152eceb7d351bb
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 082f9c2945260fd9b29951caff1c49f6dccab4ea ef4b6bc350174e99a16427d1745754bdfa14a548 && git checkout -B drift-repro 082f9c2945260fd9b29951caff1c49f6dccab4ea && git merge --no-ff ef4b6bc350174e99a16427d1745754bdfa14a548

node scripts/docs-audit/affected-docs.mjs --json 082f9c2945260fd9b29951caff1c49f6dccab4ea

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 082f9c2945260fd9b29951caff1c49f6dccab4ea → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…n all three commands

The warning forecasts a 405 at save time, not a style nudge, so it moves out
of the os lint-only best-practice sweep into AUTHORING_RULES as an advisory
rule: os lint, os validate and os build (and objectstack dev, which runs the
registry) all report it, once. It stays a warning and never fails a build.
The rule is the exported lintInlineEditBulk with its rule-id constant, and
its finding names the object in the where slot.

Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

Final head for L1 (first review) — 2da6508c15d60e314f3a3611c04ed970665f4f0e

This head is final for review (cards #34567 chain head and #34566 member, area o2-S). Round two answers the area's order that the #34566 rule run on every authoring command, not only os lint.

  • lintInlineEditBulk is its own function, registered in AUTHORING_RULES (advisory, all commands, CLI-only surface); os lint, os validate (and so objectstack dev) and os build all print it as a warning and none fails on it. It left lintDataModel.
  • Registering it moves the printed author-time rule count 68 → 69; four content/docs transcript pages follow (check:docs-transcript-drift).
  • Tests: data-model-rules.test.ts drives the rule through runAuthoringRules for the three commands (64/64); the lint suite (9091, wiring test included) and the 11 CLI test files that read the registry (262) are green. Ablation re-run: 7 red, 1 green before restore, 64/64 after.
  • Local gates: 123 derived, every exit 0, --ran 0 NOT-MEASURED. overlap-check.mjs clean against main.
  • CI on this head: 72 check-runs, 60 success, 12 skipped, none red or pending.
  • The PR body was rewritten for this head by the card thread.
  • Landing tier: Tier H (packages/lint/**, packages/cli/**, skills/**, content/docs/**; the changeset releases @objectstack/lint). After L1 ACCEPT and an at-tier contract review PASS on this head, the area hands it to the seat; it stays draft.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 2da6508 · 2026-11-17T04:12Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2da6508c15d60e314f3a3611c04ed970665f4f0e
Local-runs: none
Scope: skills/objectstack-data/references/lint-rules.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/views-apps-actions-pages.json + packages/lint/src/data-model-rules.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/index.ts, scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Inputs read: cards #34567 and #34566 (bodies and all five comments each), PR #34600 (body, file list, comments), the net diff against merge base 8dd8192c (14 files, +232 −27), and the head's check-runs: 72 runs, every one success or skipped, none failed, none pending. The rest of the diff (.changeset/, four content/docs/ transcript lines, packages/cli/test/data-model-rules.test.ts) is the lane seat's ACCEPT at TIER_DEFAULT and is not reviewed here.

Security-touching: yes is meant: the new sentence in both skills and the rule's fix line teach an author to add 'bulk' to enable.apiMethods, the object's API-exposure whitelist (the axis packages/spec/src/data/api-derivation.ts itself names a security concern). No access finding.

① Derived judgments

  • Accept-set: unchanged, right. No schema, parser or route is touched. The new rule is tier: 'advisory', emits warning only, and no reviewed command carries a warnings-fail flag (lint.ts, validate.ts, compile.ts on main have none), so no stack that built before is refused now.
  • Public surface of @objectstack/lint: two added exports, lintInlineEditBulk and RELATIONSHIP_INLINE_EDIT_NEEDS_BULK, and one added AUTHORING_RULES entry (commands: ALL, input: 'parsed', surfaces: CLI_ONLY). Additive, right. The entry is shaped exactly as its neighbours lintUniqueDeclarations and lintLegacyOrganizationComposites.
  • Printed author-time rule count 68 to 69: follows from the one new registry entry, right; the transcript gate derives it and its check-run is green.
  • Skills surface: one form-type table rewritten, one paragraph and one sentence added in objectstack-ui/SKILL.md, one sentence in relationships.md, one table row in lint-rules.md, one eval case; five restatements cut. Each cut keeps a home at this head: the row-by-row sentence at skills/objectstack-data/SKILL.md:231, the derived-FK and roll-up paragraph in the line-item paragraph and its pointer to objectstack-data, the subforms sentence in the new one-line pointer, and the lint-clean paragraph in the table rows above it. Right.
  • Ratchet rows: objectstack-ui/SKILL.md 3833 to 3921, relationships.md 4232 to 4229, lint-rules.md 970 to 934. Measured from the git objects: 15349 to 15704 bytes, 16925 to 16916, 3829 to 3735; ceil((15704 − 20) / 4) = 3921, ceil(16916 / 4) = 4229, ceil(3735 / 4) = 934. All three rows sit at the measurement with zero headroom. Right.

② Semver level

Clause-②: no — confirmed. The diff refuses nothing and widens nothing an author can write; Metadata-protocol: none is correct (no key, value or metadata type changes).

@objectstack/skills patch and @objectstack/lint patch match AGENTS.md rule 3 on main (none takes patch; a non-protocol change ships patch). Both declaration lines are line-initial in the PR body and in the changeset body. The changeset's account of the rule (id, export names, three commands, advisory, once per object, fix line) matches the tree. Check Changeset is green on this head.

③ Boundary flags

  • Dev flag, test in the shared harness file instead of a card-named file: accepted; it is outside this record's scope and the area accepted it.
  • Dev flag, the rule and the sentence cover the child object and lookup children: correct, and required by the code. packages/rest/src/batch-routes.ts:368 gates every op on its own object (apiAccessDenialFromEnable(obj.enable, op.object, 'bulk', { bulkChild: op.action })), and attachInlineSubforms (ui/packages/app-shell/src/providers/MetadataProvider.tsx:714) inlines both master_detail and lookup fields.
  • Dev flag, two ratchet rows lowered and one raised: answered under ④ (ratchet file).
  • Dev flag, rule moved from lintDataModel to its own registry entry: correct. It answers the round-one open question (reach was os lint only) and meets 照技能声明 inlineEdit 得到一张存不了的表单:父对象的 apiMethods 没有 bulk 时,带行保存被 405 拒绝,技能没写这个前提,编写期也没有任何提示 #34566 acceptance 1, which names compile time.
  • Dev flag, lint-rules.md keeps its os lint framing: true as written; see N2.
  • open_questions: the one remaining entry asks for this review; answered by this record. The round-one question on reach is closed by the registry move.
  • Out-of-scope finding, relationship/line-items-inline-edit tests def.inlineEdit !== true: confirmed on main (packages/lint/src/data-model-rules.ts:1090), outside this diff, carrier none. Escalated to the seat as a follow-up card candidate: a *_line child that already declares 'grid' or 'form' is told to consider inlineEdit: true.
  • Second road of 照技能声明 inlineEdit 得到一张存不了的表单:父对象的 apiMethods 没有 bulk 时,带行保存被 405 拒绝,技能没写这个前提,编写期也没有任何提示 #34566 (stop gating the form's save on bulk): not taken, correctly; it widens what REST accepts and belongs to domain:rest with its own review.
  • SQL push-down: no query, id materialisation or in-app join is added anywhere in the diff. The rule is a pure pass over the in-memory stack. No finding.

④ Design judgment

skills/objectstack-ui/SKILL.md — Form Views (card #34567). Each statement checked against main:

  • simple is the default: FormViewSchema.type is .default('simple'), described as "stacked sections, the default" (packages/spec/src/ui/view.zod.ts:5155). The 15-field cap had no counterpart in the schema or the renderer. Holds.
  • tabbed is "one tab per section" (same describe line); its two costs are the card's staging measurement. Holds against acceptance 1.
  • collapse: 'collapsed' on a fieldGroups entry: the enum is none | expanded | collapsed (packages/spec/src/data/object.zod.ts:1453). collapsed: true on a section listing its own fields: FormSectionSchema.collapsed, which implies collapsible, and is refused beside group (view.zod.ts:4372, :4484), so naming the object's key for grouped sections is the right split. Holds.
  • columns (form or section) as a per-row ceiling a narrow screen lowers, two when unset: the section describe says "the author's ceiling ... a renderer collapses it on narrow containers", and UNDECLARED_SECTION_COLUMNS = 2 with sectionColumnsFor falling back section, then form, then two (ui/packages/plugin-form/src/autoLayout.ts:368). Holds.
  • modalSize sm to full, lg or xl when unset: the enum is sm | default | lg | xl | full (view.zod.ts:5244); ModalForm.tsx:502 uses an authored value as written and otherwise infers a size bounded to lg or xl from the drawn columns and the field count. Holds.
  • Acceptance 2 (one line of guidance each for collapsed, columns, modalSize): met.

skills/objectstack-ui/SKILL.md Master-Detail Forms item 1 and skills/objectstack-data/rules/relationships.md § Inline Editing (card #34566). "A parent or child declaring enable.apiMethods must list 'bulk', or that save is refused 405 OBJECT_API_METHOD_NOT_ALLOWED."

  • The save path: MasterDetailForm.tsx sends every save, create and edit, through runBatchTransaction ("Persistence ALWAYS goes through dataSource.batchTransaction", :1888), parent as op 0, and the adapter treats a 405 as a hard error on a backend that declares atomic batch (ui/packages/data-objectstack/src/index.ts:5179). So the parent is gated on every save of that form, and the child whenever the save carries a child row.
  • The gate: batch-routes.ts:368 as above; the 405 body's code is OBJECT_API_METHOD_NOT_ALLOWED (packages/rest/src/rest-server.ts:562).
  • "declaring": resolveEffectiveApiMethods returns unrestricted for an absent apiMethods and deny-all for []. Only a declared list can refuse. Holds.
  • 照技能声明 inlineEdit 得到一张存不了的表单:父对象的 apiMethods 没有 bulk 时,带行保存被 405 拒绝,技能没写这个前提,编写期也没有任何提示 #34566 acceptance 2 (the precondition is readable in the skill text): met, in both named sections.

skills/objectstack-data/references/lint-rules.md. The new row gives the id relationship/inline-edit-needs-bulk, severity warning, and the trigger "inlineEdit while the parent's or child's enable.apiMethods omits 'bulk'". Id, severity and trigger agree with the code. The severity vocabulary above the table already covers warning. Holds.

packages/lint/src/data-model-rules.ts — lintInlineEditBulk, sentence by sentence against the skill.

  • Fires on a relationship field (lookup or master_detail) whose inlineEdit is true, 'grid' or 'form' and that has a reference: the same three conditions attachInlineSubforms reads, and the same three values as the spec's own predicate (packages/spec/src/data/related-list-body-table.ts:59) and FieldSchema.inlineEdit (field.zod.ts:2083). No drift.
  • The verdict is isApiOperationAllowed(resolveEffectiveApiMethods(enable), 'bulk'), the two functions the REST gate itself resolves through, not a copied table. Undeclared and null stay silent, [] and a list holding only legacy values fire. Agrees with the route.
  • Targets are the parent and the child's own object, each once (reported), located at objects[N].enable.apiMethods, with the fix add 'bulk' to NAME.enable.apiMethods. The message names the 405 code. Severity warning. Matches the skill row, the changeset and the tests.
  • Break attempts. Self-referencing relationship: one finding, deduplicated. Parent outside the stack: skipped, a false negative the rule cannot see into and does not claim. An object with apiEnabled: false: silent, correct, since that is a different refusal (404) the sentence does not speak to. A list with 'bulk' but without the write itself: silent, correct, since the single-record form fails the same way. A child that declares a list without bulk while only the parent is edited: warned although that particular save passes; the warning is still right for any save that carries a row. No false positive found that contradicts the sentence.
  • refOf can throw on an unreadable reference shape; that is the file's standing contract (finding(lint): a runtime-gate test fixture spells reference: { object: ... }, a carrier ObjectSchema refuses and the rule's own reader ignores #13053) shared with the sibling rules, and a parsed stack cannot carry such a shape.

packages/lint/src/authoring-rules.ts and packages/lint/src/index.ts. The entry maps suggestion to info and fix to hint like its neighbours; commands: ALL is what puts the warning on os lint, os validate and os build, as the changeset and the PR title claim. The exports match the changeset's names. Agrees.

scripts/check-skills-token-ratchet.mjs. Only three data rows of CEILINGS and their comments change; the gate's logic is untouched, so this is not a gate weakening. Two rows move down to their measurements, which tightens them (the lint-rules.md row loses 12 tokens of standing headroom). The one raise, +88 tokens on objectstack-ui/SKILL.md, follows the raise path already used by rows on main (ruling record 6513306068: cut restatement first, raise the remainder by measurement): 320 bytes of restatement were cut from the same file first, the remainder pays for text both cards order by name (the three guidance items of #34567 acceptance 2, the precondition of #34566 acceptance 2), and the row is pinned at the measurement with zero headroom. Justified. The two in-file comments' arithmetic matches the byte counts above.

skills/objectstack-ui/evals/views-apps-actions-pages.json — case 19.

S1 (should-fix) — the case's must_contain rejects an answer its own expected_output and the skill both sanction. expected_output allows "collapsed: true on the four rarely filled ones (or collapse: 'collapsed' on those fieldGroups entries of the object)", and the skill paragraph names the fieldGroups route first; an answer that takes it writes sections: [{ group: ... }] and never contains the string collapsed: true, so the string check scores a correct answer as a failure. Fix either side so the two agree: drop collapsed: true from must_contain (the must_not_contain of type: 'tabbed' and the modalSize token already carry the case), or remove the parenthetical alternative from expected_output and have the prompt ask for sections that list their own fields. The rest of the case holds: the prompt matches the card's scenario (many fields, six sections, New dialog, wide screens), and type: 'tabbed' is absent from its own expected text.

Nits (no effect on correctness or the contract):

  • N1 — a child surfaced only through a form view's subforms or a page block's details, with no inlineEdit on the relationship, is saved through the same batch and needs bulk the same way; the rule and the sentence speak of inlineEdit only. Follow-up card candidate, not a defect of what is written.
  • N2 — lint-rules.md opens with "os lint checks", while this one row is also reported by os validate and os build. True as written, incomplete; the file's budget is the stated reason. Accepted deviation.
  • N3 — the entry reuses RUNTIME_OBJECT_ADVISORY_VOLUME as its surfaceReason. That reason is about advisory volume per object write; this rule is rare and forecasts a refusal, so a Studio author who narrows apiMethods gets no warning. Whether it should cross the runtime door is a follow-up decision.
  • N4 — the Form Views paragraph does not say to keep a required field out of a collapsed section. "Collapse what is rarely filled" covers the intent; whether the renderer reopens a collapsed section that holds a failed required field was not established in this read.
  • N5 — case 19 also requires the literal type: 'simple', which the skill now teaches as the default; an answer that omits type is valid metadata. Consistent with case 1's convention of writing it out; fold into the S1 fix or leave.

One graded finding is open on this head, S1; its fix earns a delta review.

Implemented-by: claude/project-thread-6lyn9b
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmS6aD6wyUggsi2rWNK

席位核对

L1 first review — ACCEPT · head 2da6508c15d60e314f3a3611c04ed970665f4f0e · cards #34567 (chain head) + #34566 (member) · read 2026-11-17T04:23Z by L1-d (area o2-S)

Read on GitHub and on a local worktree at this head, not off the report: get_files (14 paths), the diff, both cards, the final-head comment 6938048761, the head's check-runs.

Checklist

  • Shape: draft, base main, both closing keywords stand alone on their own lines; both cards are delivered in full (skills/objectstack-ui:表单类型表把 tabbed 推荐给「字段组多的复杂对象」,照做得到必填项跨页签、手机上页签被截断的表单;改为默认分组堆叠,并补上折叠分组、列数、弹窗尺寸的选用指引 #34567 acceptance 1–3: table no longer steers to tabbed, one sentence each for collapsed/columns/modalSize, eval case 19; 照技能声明 inlineEdit 得到一张存不了的表单:父对象的 apiMethods 没有 bulk 时,带行保存被 405 拒绝,技能没写这个前提,编写期也没有任何提示 #34566 acceptance 1–2: author-time warning with a named fix, and the precondition in both skills), so Fixes is right. No closing keyword sits next to any other card number in the body.
  • Scope: no content/docs/releases/ change; the four content/docs/ edits are transcript count lines only (68 → 69), which pnpm check:docs-transcript-drift re-derived at this head (exit 0, 4 declared values equal the registry). @objectstack/lint and @objectstack/skills are both published (no private); the changeset releases both as patch. Changeset prose checked sentence by sentence against the diff: the form-layout paragraph, the "undeclared apiMethods allows it" sentence, the true/'grid'/'form' triggers, "registered for all three commands", "advisory and never fails a build", and the "cutting text stated elsewhere" closer all match.
  • Premises, re-read at this head: packages/rest/src/batch-routes.ts:368 gates every batch op with apiAccessDenialFromEnable(obj.enable, op.object, 'bulk', { bulkChild: op.action }); resolveEffectiveApiMethods treats undeclared as unrestricted and []/non-array as deny-all, and isApiOperationAllowed(eff, 'bulk') reads the bulk primitive — so the rule asks the spec's own resolver, no copied table. UI text: FormViewSchema.type default 'simple'; modalSize enum sm|default|lg|xl|full; FormSectionSchema.collapsed: true refused beside group (the skill sends grouped sections to fieldGroups[].collapse: 'collapsed', which the object schema carries); section columns 1–4 described as a ceiling; UNDECLARED_SECTION_COLUMNS = 2 (ui/packages/plugin-form/src/autoLayout.ts:368); ModalForm.tsx picks lg/xl when modalSize is unset. Every skill sentence holds.
  • Cuts keep a home: "row-by-row" lives at skills/objectstack-data/SKILL.md:231; roll-ups at rules/relationships.md § Roll-up Summaries; "derived from the DATA MODEL" stays in the line-item paragraph.
  • Ratchet: byte readings match the comments (objectstack-ui/SKILL.md 15349 → 15704, relationships.md 16925 → 16916, lint-rules.md 3829 → 3735); node scripts/check-skills-token-ratchet.mjs exit 0. Raise path quotes ruling record 6513306068 verbatim.

Spot readings at this head (own runs)

  • pnpm --filter @objectstack/cli exec vitest run --project unit test/data-model-rules.test.ts — Tests 64 passed (after building the CLI's dependency closure locally).
  • packages/lint/src/authoring-rule-wiring.test.ts — Tests 26 passed (advisory tier: the guard reads the rule source for 'error').
  • pnpm check:skill-links — 255 links / 130 fragments resolve; eval JSON parses.
  • Own ablation, two cuts in one build, each aimed at a different case: (a) for (const target of [parent, child.name]) → [parent]; (b) the registry entry's commands: ALL → ['lint']. Both markers confirmed in packages/lint/dist. Run -t inline-edit-needs-bulk: 2 failed / 6 passed — exactly "warns on the child…" (a) and "reaches os lint, os validate and os build…" (b). Restored, git diff HEAD empty, rebuilt, 64/64.
  • Check-runs on this head: 72, none red or pending (60 success, 12 skipped). Lint & Repo Gates success, TypeScript Type Check success, Governed Surface Queue Guard success.

Deviations accepted

  • D1 (scope note, nit): the skill sentence and the rule check the bulk primitive only. A declared list with bulk but without create/update (or apiEnabled: false) is still refused by the same batch gate. The sentence is true as written ("must list 'bulk', or … refused"), and the card asks for bulk; no change asked.
  • D2 (out-of-scope finding, owed before hand-off): the body's "Noted, not filed … carrier: none" names a shipped defect — relationship/line-items-inline-edit (data-model-rules.ts:1149) tests def.inlineEdit !== true, so a *_line child already on 'grid'/'form' still gets "consider inlineEdit: true"; relationship/association-inline-edit (:1172) has the mirror gap (=== true misses 'grid'/'form'). Per the L1 checklist a noticed, untouched shipped defect is filed, not fixed and not left at "carrier: none". Owed: the area files one finding card for both and updates that body line to #N (body-only edit, head does not move). Not REWORK: the diff itself is right.
  • Report evidence includes no API read that git could have answered.

Contract review: owed. reviewFace on the committed paths reads face rules → CONTRACT_REVIEW_TIER; hits.rules = the four skills/** files. The diff files that directly implement the taught rule (packages/lint/src/data-model-rules.ts, packages/lint/src/authoring-rules.ts) belong on the Scope: line beside them. No at-tier PASS is on this head yet; the seat routes it.

Landing tier: node scripts/pm/check-governed-merges.mjs --pr 34600 → GOVERNED, Tier H (skills/** ×4; the low-risk skills arm does not apply: code paths outside skills wording, and the changeset releases @objectstack/lint). Size 259 lines, under the human-merge threshold. Stays draft; after an at-tier L2 PASS on this head and D2's card, the area hands it to the seat for the approver.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

Final head for L1 (delta) — ef4b6bc350174e99a16427d1745754bdfa14a548

This head is final for review (cards #34567 and #34566, area o2-S); it supersedes 2da6508c (L1 ACCEPT 6938263188, contract review PASS 6938207311 with S1 open) and answers S1. One commit on top of 2da6508c, one file, no merge of main.

  • S1: skills/objectstack-ui/evals/views-apps-actions-pages.json case 19 drops collapsed: true from must_contain, so an answer taking the fieldGroups[].collapse: 'collapsed' route the skill names is no longer scored a failure. expected_output is unchanged; type: 'simple' and the modalSize token stay in must_contain (N5 left as written, matching case 1).
  • L1 D2: the body's "Noted, not filed" line now reads "Filed as finding(lint): the two line-item inlineEdit advisories read only inlineEdit: true, so a relationship declaring 'grid' or 'form' is told to add inlineEdit, and an association declaring 'grid' or 'form' is never warned #34636 (finding, awaiting triage)", no closing keyword; triage was knocked on the mailbox for the first touch.
  • Nits: N1 and N3 recorded as follow-up candidates, N2 accepted, N4 left; the body states each.
  • Local gates: 123 derived, every exit 0, --ran 0 NOT-MEASURED. overlap-check.mjs clean against main 082f9c2.
  • CI on this head: 72 check-runs, 60 success, 12 skipped, none red or pending; mergeable clean.
  • The PR body was rewritten for this head by the card thread; label security added per the contract review's Security-touching: yes.
  • Landing tier: Tier H. After L1 delta ACCEPT and a delta contract review PASS on this head, the area hands it to the seat; it stays draft.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head ef4b6bc · 2026-11-17T04:59Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmS6aD6wyUggsi2rWNK

席位核对

L1 delta — ACCEPT · head ef4b6bc350174e99a16427d1745754bdfa14a548 (on top of 2da6508c, first-review ACCEPT 6938263188) · cards #34567 + #34566 · read 2026-11-17T04:59Z by L1-d (area o2-S)

Delta only: git diff 2da6508c ef4b6bc3 is one commit, one file, +1/−1. Also read: the contract review 6938207311 (PASS with S1 open), the final-head comment 6938886453, card #34636, the rewritten body, and this head's check-runs.

Delta

Own readings at this head

  • node scripts/check-skills-token-ratchet.mjs exit 0 (eval fixtures are measured, not ratcheted; no ceiling moved in the delta).
  • Check-runs on this head: 72, of which 60 are success and 12 skipped; none red, none pending. Lint & Repo Gates, TypeScript Type Check and Governed Surface Queue Guard are success.
  • No code moved in the delta, so the first review's test run and ablation still stand. Nothing re-run.

Deviations accepted: none new. D1 (only the bulk primitive is checked) stands as recorded.

Contract review: a delta L2 on this head is owed. The record 6938207311 is a PASS on 2da6508c with a should-fix open, so per contract-review.md the original reviewer reads the S1 delta; routed by the area.

Landing tier: node scripts/pm/check-governed-merges.mjs --pr 34600 → Tier H. It stays draft. After the delta L2 PASS on this head, the area hands it to the seat for the approver.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ef4b6bc350174e99a16427d1745754bdfa14a548
Local-runs: none
Scope: skills/objectstack-data/references/lint-rules.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/views-apps-actions-pages.json + packages/lint/src/data-model-rules.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/index.ts, scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Delta review on top of record 6938207311 (PASS at 2da6508c15d60e314f3a3611c04ed970665f4f0e, S1 open, nits N1 to N5). Inputs read: that record in full, the PR body, file list, labels and all comments (the lane's final-head comment 6938886453 included), card #34636, the diff between the two heads, the net diff against merge base 8dd8192c, the whole eval file and the Form Views section at this head, and this head's check-runs.

What moved between the heads, read from the git objects: one commit (ef4b6bc3), one file, one line. git diff 2da6508c ef4b6bc3 over the whole tree lists only skills/objectstack-ui/evals/views-apps-actions-pages.json, +1 −1: case 19's must_contain goes from ["type: 'simple'", "collapsed: true", "modalSize"] to ["type: 'simple'", "modalSize"]. The same diff restricted to the PR's fourteen paths is that one hunk and nothing else. No merge of main is in the delta; the net diff is still 14 files, +232 −27. Every judgment of 6938207311 on the other thirteen files therefore stands on this head unchanged and is not repeated here.

The yes on the security line above still stands and is still meant: the teaching did not change (both skills and the rule's fix line tell an author to add 'bulk' to enable.apiMethods, the object's API-exposure list). The security label is on the PR (labels: documentation, size/m, tests, tooling, security). No access finding.

Check-runs on this head: 72, all completed; 60 success, 12 skipped, none failed, none pending. Lint & Repo Gates, TypeScript Type Check, Governed Surface Queue Guard, Check Changeset (both runs), Test Core and Test UI are success.

① Derived judgments

  • Accept-set, public surface of @objectstack/lint, the printed rule count and the three ratchet rows: unchanged from 6938207311, right. No file that carries them moved.
  • Eval case 19, string checks: one required literal removed, none added. The set of answers the string checks accept only grows; it now includes the fieldGroups route. Right, and it is the first of the two fixes the earlier record offered.
  • Ratchet: the delta shortens an eval fixture by 19 bytes. Eval fixtures are measured and printed by scripts/check-skills-token-ratchet.mjs, not held to a CEILINGS row, so no ceiling is owed a move and none moved. Right.
  • Eval token gate (check:skill-eval-tokens, a step in .github/workflows/ci.yml that checks every must_contain token against the guides): removing a token cannot fail it, and the two tokens left were already present at the earlier head. No check-run on this head failed. Right.

② Semver level

Clause-②: no, and Metadata-protocol: none — both still correct. The delta touches no schema, parser, rule or route; it changes one assertion list in an eval fixture. @objectstack/skills patch and @objectstack/lint patch are unchanged and still right. The changeset file did not move, and its one sentence about the eval ("One eval case asks for a 42-field form and fails an answer with type: 'tabbed'") is still true of the tree. Check Changeset is green on this head.

③ Boundary flags

  • S1 answer: read in the tree under ④, not off the account.
  • Out-of-scope finding from the earlier ③ (the two line-item inlineEdit advisories read only the literal true): now carried by finding(lint): the two line-item inlineEdit advisories read only inlineEdit: true, so a relationship declaring 'grid' or 'form' is told to add inlineEdit, and an association declaring 'grid' or 'form' is never warned #34636. Its body names both checks (relationship/line-items-inline-edit with !== true, the association check with === true), cites the lines (1090 and 1113 on main, confirmed there; 1149 and 1172 at this head), gives a repro, a fix direction and three acceptance items, and says it is not fixed in this PR. It is open, labelled finding, bug, priority:p2, pm:queue, domain:spec. The PR body cites it as "Filed as finding(lint): the two line-item inlineEdit advisories read only inlineEdit: true, so a relationship declaring 'grid' or 'form' is told to add inlineEdit, and an association declaring 'grid' or 'form' is never warned #34636" with no closing keyword beside the number, so landing this PR does not close it. Disposition holds. The body's "awaiting triage" is already behind the card's labels; harmless.
  • N1 (a child reached only through subforms or a page details block needs bulk the same way): the body records it as a follow-up candidate, not changed. Holds as a disposition of a nit; it has no card number, so the PR body is its only carrier. Left to the seat whether to card it.
  • N2 (lint-rules.md keeps its os lint framing): accepted deviation, recorded in the body's acceptance notes; the file did not move. Holds.
  • N3 (RUNTIME_OBJECT_ADVISORY_VOLUME keeps the warning off the runtime door): follow-up candidate, not changed, no card number. Holds on the same terms as N1.
  • N4 (keep a required field out of a collapsed section): left as written; the skill paragraph did not move. Holds.
  • N5 (case 19 requires the literal type: 'simple'): left as written. Holds. The body's reason, "matching case 1's convention", is true of case 1's expected_output, which spells type: 'simple'; case 1's own must_contain does not list it. In case 19 the literal is the positive half of the card's point and its own expected_output spells it, so the reference answer passes.
  • Account against tree: the PR body calls the eval file "a fixture no test or gate executes". No gate runs the cases, but the eval token gate named under ① does read every must_contain token. The delta cannot fail it, so the claim's conclusion holds; the wording is loose. No action asked.
  • open_questions: the lane's one open item is this delta review; answered by this record.
  • SQL push-down: the delta adds no query, id materialisation or in-app join. No finding.

④ Design judgment

skills/objectstack-ui/evals/views-apps-actions-pages.json — case 19 at this head. must_contain: type: 'simple', modalSize. must_not_contain: type: 'tabbed'. expected_output is byte-identical to the earlier head.

  • The three parts agree with each other. Both required strings occur in expected_output (type: 'simple', modalSize: 'xl'); the forbidden string does not (the text says "Not tabs:"). The reference answer passes its own string checks.
  • They agree with the skill text. The Form Views paragraph names two collapse routes, collapse: 'collapsed' on the object's fieldGroups entry and collapsed: true on a section listing its own fields; expected_output names the same two. An answer on either route that writes type: 'simple' and sets modalSize now passes: the section route as before, and the fieldGroups route, which writes sections with group and never contains collapsed: true, no longer fails. That was the whole of S1.
  • The case still discriminates on the card's point (skills/objectstack-ui:表单类型表把 tabbed 推荐给「字段组多的复杂对象」,照做得到必填项跨页签、手机上页签被截断的表单;改为默认分组堆叠,并补上折叠分组、列数、弹窗尺寸的选用指引 #34567 acceptance 3). An answer with type: 'tabbed' fails must_not_contain, and it also fails must_contain because it lacks type: 'simple', so a tabbed answer in another quote style fails too. An answer with type: 'wizard' fails the same way. An answer that leaves out the dialog size fails on modalSize.
  • The other eighteen cases are untouched; the file parses (19 cases).

S1: closed

N6 (nit) — with collapsed: true gone, no string check covers the collapse half of the guidance: an answer that is simple, sets modalSize and collapses nothing passes the strings, and only expected_output still asks for it. If the scorer matches substrings, the token collapse occurs in both sanctioned routes (collapsed: true, collapse: 'collapsed') and in the skill paragraph, and would restore that check without reopening S1. Optional; no effect on the contract or on any sanctioned answer.

The remaining files in Scope (SKILL.md, relationships.md, lint-rules.md, the three packages/lint files, the ratchet script) are identical to the head 6938207311 judged; its ④ findings on them hold as written.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-6lyn9b
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T05:03Z · Head-sha: ef4b6bc

维护者速读

席位意见:同意合并。两张卡都有 HotCRM 实测拉动;技能改的是默认推荐,规则只是警告,不收窄任何已能通过的元数据。

席位核对

  1. 形态:14 个文件,+232/−27,Fixes #34567、Fixes #34566;Clause-②: no,Metadata-protocol: none。技能文字在本 PR 里改(skills/** 两份 + evals)。
  2. 前提实测:两处 HotCRM 现象由卡线程实测(见卡);新规则 8 个用例,经注册表跑三个命令各一例。
  3. 门禁 check-runs:head ef4b6bc3 上 72 条,60 绿、12 跳、0 红;mergeable clean。路径含 skills/** ⇒ Tier H。
  4. 接受的偏差:L1 delta ACCEPT 6938918179(首审 6938263188);契约复审 delta PASS 6938974098(首审 6938207311 的 S1 已关)。复审 N2(lint-rules.md 保留 os lint 措辞)作为接受的偏差记在正文。复审标了 Security-touching: yes,无访问类发现,已挂 security 标签。
  5. 范围外去向:L1 D2 → finding(lint): the two line-item inlineEdit advisories read only inlineEdit: true, so a relationship declaring 'grid' or 'form' is told to add inlineEdit, and an association declaring 'grid' or 'form' is never warned #34636(两条旧 inlineEdit 规则只认 true,已敲分诊)。复审 N1(只经 subforms 或页面 details 区块到达的子对象同样要 bulk)、N3(运行时门不报此警告)、N6(折叠一半的指引没有字符串检查)记在正文 Acceptance notes,零实测拉动,不另立卡。
  6. 落地条款:授权批准在案后,席位翻 ready,经合并队列落地;Fixes 两卡合并即关。释出 @objectstack/lint 与 @objectstack/skills patch。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 05:23
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 05:23
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit f8d016c Nov 17, 2026
78 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-6lyn9b branch November 17, 2026 05:53
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants